SCALE=$1
cd dataset
cd tpc-h-tool-2.17.3/dbgen
./dbgen -s $SCALE
cd ..
cd ..
mkdir -p tpch$SCALE
mv tpc-h-tool-2.17.3/dbgen/*.tbl tpch$SCALE